package com.wnxy.pawnbackgroundsystem.exception;

public class DemoRuntimeException extends RuntimeException {
    private String code;

    public String getCode() {
        return code;
    }

    public DemoRuntimeException() {
    }

    public DemoRuntimeException(String message) {
        super(message);
    }
    public DemoRuntimeException(String code,String message) {
        super(message);
        this.code = code;
    }

    public DemoRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }

    public DemoRuntimeException(Throwable cause) {
        super(cause);
    }

    public DemoRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
